﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define CollOprStat_PI "int filesCnt; int totalFileCnt; double bytesWritten; str lastObjPath[MAX_NAME_LEN];"
    [Packet("CollOprStat_PI")]
    internal class CollectionOperationStatusPacket : Packet
    {
        [PacketField("filesCnt", 0, DataTypes.Int)]
        public int FilesCounter { get; set; }

        [PacketField("totalFileCnt", 1, DataTypes.Int)]
        public int TotalFileCounter { get; set; }

        [PacketField("bytesWritten", 2, DataTypes.Double)]
        public double BytesWritten { get; set; }

        [PacketField("lastObjPath", 3, DataTypes.String, 1024)]
        public string Path { get; set; }
    }
}
